package com.ruoyi.device_data.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

public class DeviceData {
    private Long dataId; // 用户设备数据ID
    private Long userId; // 用户ID
    private Long deviceId; // 设备ID
    private String fullName; // 全名
    private String sex; // 性别
    private Integer age; // 年龄
    private String height; // 身高
    private String weight; // 体重
    private String BMI; // BMI
    private Integer heartRate; // 心率
    private String sleepQuality; // 睡眠质量
    private Integer steps; // 步数
    private BigDecimal sleepDuration; // 睡眠时间（单位：小时）
    private Integer activeMinutes; // 运动时长（单位：分钟）
    private Integer bloodPressureSystolic; // 血压收缩压
    private Integer bloodPressureDiastolic; // 血压舒张压
    private BigDecimal bloodOxygen; // 血氧
    private Date date; // 日期
    private String remark; // 备注

    // Getter 和 Setter
    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getBMI() {
        return BMI;
    }

    public void setBMI(String BMI) {
        this.BMI = BMI;
    }

    public Integer getHeartRate() {
        return heartRate;
    }

    public void setHeartRate(Integer heartRate) {
        this.heartRate = heartRate;
    }

    public String getSleepQuality() {
        return sleepQuality;
    }

    public void setSleepQuality(String sleepQuality) {
        this.sleepQuality = sleepQuality;
    }

    public Integer getSteps() {
        return steps;
    }

    public void setSteps(Integer steps) {
        this.steps = steps;
    }

    public BigDecimal getSleepDuration() {
        return sleepDuration;
    }

    public void setSleepDuration(BigDecimal sleepDuration) {
        this.sleepDuration = sleepDuration;
    }

    public Integer getActiveMinutes() {
        return activeMinutes;
    }

    public void setActiveMinutes(Integer activeMinutes) {
        this.activeMinutes = activeMinutes;
    }

    public Integer getBloodPressureSystolic() {
        return bloodPressureSystolic;
    }

    public void setBloodPressureSystolic(Integer bloodPressureSystolic) {
        this.bloodPressureSystolic = bloodPressureSystolic;
    }

    public Integer getBloodPressureDiastolic() {
        return bloodPressureDiastolic;
    }

    public void setBloodPressureDiastolic(Integer bloodPressureDiastolic) {
        this.bloodPressureDiastolic = bloodPressureDiastolic;
    }

    public BigDecimal getBloodOxygen() {
        return bloodOxygen;
    }

    public void setBloodOxygen(BigDecimal bloodOxygen) {
        this.bloodOxygen = bloodOxygen;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("dataId", getDataId())
                .append("userId", getUserId())
                .append("fullName", getFullName())
                .append("sex", getSex())
                .append("age", getAge())
                .append("height", getHeight())
                .append("weight", getWeight())
                .append("BMI", getBMI())
                .append("heartRate", getHeartRate())
                .append("sleepQuality", getSleepQuality())
                .append("steps", getSteps())
                .append("sleepDuration", getSleepDuration())
                .append("activeMinutes", getActiveMinutes())
                .append("bloodPressureSystolic", getBloodPressureSystolic())
                .append("bloodPressureDiastolic", getBloodPressureDiastolic())
                .append("bloodOxygen", getBloodOxygen())
                .append("date", getDate())
                .append("remark", getRemark())
                .toString();
    }
}

//package com.ruoyi.device_data.domain;
//
//import org.apache.commons.lang3.builder.ToStringBuilder;
//import org.apache.commons.lang3.builder.ToStringStyle;
//
//import java.math.BigDecimal;
//
//public class DeviceData {
//    private Long dataId; // 用户设备数据ID
//    private Long userId; // 用户ID
//    private Integer heartRate; // 心率
//    private String sleepQuality; // 睡眠质量
//    private Integer steps; // 步数
//    private BigDecimal sleepDuration; // 睡眠时间（单位：小时）
//    private Integer activeMinutes; // 运动时长（单位：分钟）
//    private Integer bloodPressureSystolic; // 血压收缩压
//    private Integer bloodPressureDiastolic; // 血压舒张压
//    private BigDecimal bloodOxygen; // 血氧
//    private String remark; // 备注
//
//    // Getter 和 Setter
//    public Long getDataId() {
//        return dataId;
//    }
//
//    public void setDataId(Long dataId) {
//        this.dataId = dataId;
//    }
//
//    public Long getUserId() {
//        return userId;
//    }
//
//    public void setUserId(Long userId) {
//        this.userId = userId;
//    }
//
//    public Integer getHeartRate() {
//        return heartRate;
//    }
//
//    public void setHeartRate(Integer heartRate) {
//        this.heartRate = heartRate;
//    }
//
//    public String getSleepQuality() {
//        return sleepQuality;
//    }
//
//    public void setSleepQuality(String sleepQuality) {
//        this.sleepQuality = sleepQuality;
//    }
//
//    public Integer getSteps() {
//        return steps;
//    }
//
//    public void setSteps(Integer steps) {
//        this.steps = steps;
//    }
//
//    public BigDecimal getSleepDuration() {
//        return sleepDuration;
//    }
//
//    public void setSleepDuration(BigDecimal sleepDuration) {
//        this.sleepDuration = sleepDuration;
//    }
//
//    public Integer getActiveMinutes() {
//        return activeMinutes;
//    }
//
//    public void setActiveMinutes(Integer activeMinutes) {
//        this.activeMinutes = activeMinutes;
//    }
//
//    public Integer getBloodPressureSystolic() {
//        return bloodPressureSystolic;
//    }
//
//    public void setBloodPressureSystolic(Integer bloodPressureSystolic) {
//        this.bloodPressureSystolic = bloodPressureSystolic;
//    }
//
//    public Integer getBloodPressureDiastolic() {
//        return bloodPressureDiastolic;
//    }
//
//    public void setBloodPressureDiastolic(Integer bloodPressureDiastolic) {
//        this.bloodPressureDiastolic = bloodPressureDiastolic;
//    }
//
//    public BigDecimal getBloodOxygen() {
//        return bloodOxygen;
//    }
//
//    public void setBloodOxygen(BigDecimal bloodOxygen) {
//        this.bloodOxygen = bloodOxygen;
//    }
//
//    public String getRemark() {
//        return remark;
//    }
//
//    public void setRemark(String remark) {
//        this.remark = remark;
//    }
//
//    @Override
//    public String toString() {
//        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
//                .append("dataId", getDataId())
//                .append("userId", getUserId())
//                .append("heartRate", getHeartRate())
//                .append("sleepQuality", getSleepQuality())
//                .append("steps", getSteps())
//                .append("sleepDuration", getSleepDuration())
//                .append("activeMinutes", getActiveMinutes())
//                .append("bloodPressureSystolic", getBloodPressureSystolic())
//                .append("bloodPressureDiastolic", getBloodPressureDiastolic())
//                .append("bloodOxygen", getBloodOxygen())
//                .append("remark", getRemark())
//                .toString();
//    }
//}
//
